package io.demo.strategy;

/**
 * @author create by zhangpengfei at 2021/9/29 14:15
 */

public class Main {

    public static void main(String [] args){
        Duck malard = new MallardDuck();
        malard.performFly();
        malard.performQuack();

        Duck modelDuck = new ModelDuck();
        modelDuck.performFly();
        modelDuck.setFlyBehavior(new FlyRocketPowered());
        modelDuck.performFly();
    }
}
